import Layout from '@/layout'

export default {
  path: '/finance',
  component: Layout,
  redirect: '/finance/pay',
  name: 'Finance',
  meta: { title: '财务管理', icon: 'money', noCache: true, roles: ['finance'] },
  children: [
    {
      path: 'pay',
      name: 'FinancePay',
      component: () => import('@/views/finance/pay'),
      meta: { title: '进帐流水', icon: 'star', noCache: true }
    },
    {
      path: 'pay-for',
      name: 'FinancePayFor',
      component: () => import('@/views/finance/pay-for'),
      meta: { title: '代付流水', icon: 'star', noCache: true }
    },
    // {
    //   path: 'merchant',
    //   name: 'FinanceMerchant',
    //   component: () => import('@/views/finance/merchant'),
    //   meta: { title: '商家订单', icon: 'star', noCache: true }
    // },
    {
      path: 'cash',
      name: 'FinanceCash',
      component: () => import('@/views/finance/cash'),
      meta: { title: '提现列表', icon: 'star', noCache: true }
    },
    {
      path: 'profit',
      name: 'FinanceProfit',
      component: () => import('@/views/finance/profit'),
      meta: { title: '分红列表', icon: 'star', noCache: true },
      hidden: true
    },
    {
      path: 'data',
      name: 'FinanceData',
      component: () => import('@/views/finance/data'),
      meta: { title: '统计列表', icon: 'star', noCache: true },
      // hidden: true
    }
  ]
}
